/**
 * 
 */
package com.itinsys.enma.domain;

import java.sql.Time;
import java.util.Set;


/**
 * @author pferraz
 *
 */
public class PlanningReservation extends Reservation{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	private int day;
	private Set<PlanningReservation> inConflictWith;
	private Set<Period> reservationPeriods;
	private Planning planning;
	private String sGroup;
	private String observation;
	private boolean active;

	/**
	 * 
	 */
	public PlanningReservation() {
		// TODO Auto-generated constructor stub
	}
	
	/**
	 * 
	 * @param planning
	 * @param subject
	 * @param group
	 * @param environment
	 * @param reservationPeriods
	 * @param startTime
	 * @param endTime
	 * @param day
	 */
	public PlanningReservation(Planning planning,String subject,String sGroup,String observation,Environment environment,Set<Period>reservationPeriods,Time startTime,Time endTime,int day) {
		this.planning=planning;
		this.description = subject;
		this.sGroup=sGroup;
		this.environment = environment;
		this.setReservationPeriods(reservationPeriods);
		this.active = true;
		this.startTime=startTime;
		this.endTime=endTime;
		this.setDay(day);
		this.observation=observation;
	}



	public int getDay() {
		return day;
	}



	public void setDay(int day) {
		this.day = day;
	}



	public Set<PlanningReservation> getInConflictWith() {
		return inConflictWith;
	}



	public void setInConflictWith(Set<PlanningReservation> inConflictWith) {
		this.inConflictWith = inConflictWith;
	}



	public Planning getPlanning() {
		return planning;
	}



	public void setPlanning(Planning planning) {
		this.planning = planning;
	}

	public Set<Period> getReservationPeriods() {
		return reservationPeriods;
	}



	public void setReservationPeriods(Set<Period> reservationPeriods) {
		this.reservationPeriods = reservationPeriods;
	}

	

	public String getsGroup() {
		return sGroup;
	}

	public void setsGroup(String sGroup) {
		this.sGroup = sGroup;
	}

	public boolean isActive() {
		return active;
	}


	public void setActive(boolean active) {
		this.active = active;
	}

	public String getObservation() {
		return observation;
	}

	public void setObservation(String observation) {
		this.observation = observation;
	}

	
	
	
}
